package com.malty.mall.domain.entity.pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.malty.mall.domain.dto.req.pms.PmsAttributeParam;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author malty
 */
@Data
@TableName("pms_product_attribute")
public class PmsProductAttribute {
    private Long id;
    private String name;
    private Long categoryId;
    private Integer type;
    private Integer selectType;
    private String inputType;
    private String inputList;
    private Integer sort;
    private Integer filterType;
    private Integer searchType;
    private Integer relateStatus;
    private Integer handAddStatus;
    private Date createTime;
    private Date updateTime;

    public PmsProductAttribute(PmsAttributeParam attributeParam) {
        BeanUtils.copyProperties(attributeParam,this);
    }
}
